package jxta.chat;

import jxta.chat.entities.AbstractMessage;
import jxta.chat.entities.LogOutMessage;
import jxta.chat.entities.VoiceChatMessage;
import jxta.test.JxtaManager;
import net.jxta.endpoint.Message;
import net.jxta.peergroup.PeerGroup;
import net.jxta.pipe.PipeMsgEvent;

public class VoiceChatMessageHandler extends AbstractMessageHandler{
	
	private JxtaManager manager;
	
	public VoiceChatMessageHandler(JxtaManager manager){
		this.manager = manager;
	}
	
	@SuppressWarnings(value="unchecked")
	@Override
	public AbstractMessage handleMessage(Message msg, PeerGroup pg){		
		return new VoiceChatMessage(msg, manager);
	}

	public void pipeMsgEvent(PipeMsgEvent event) {
		if (event.getMessage() != null){
			
		}
		
	}
	
}
